package com.eshop.service.Impl;

import com.eshop.dao.GoodsDao;
import com.eshop.dao.Impl.GoodsDaoImpl;
import com.eshop.model.Goods;
import com.eshop.service.NewGoodsService;

import java.util.List;

public class NewGoodsServiceImpl implements NewGoodsService {
    GoodsDao goodsDao = new GoodsDaoImpl();

    @Override
    public List<Goods> getGoodsByLatestDate() {
        return goodsDao.queryGoodsByLatestDate();
    }
}
